import { PageQuery } from '@/types/axios'

/**
 * 登录用户信息
 */
export interface UserInfo {
  nickname: string
  avatar: string
  userId: number
  username: string
  email: string
}

export interface UserQuery extends PageQuery {
  name: string
  phone: string
  email: string
  account: string
  id: string
  sex: string
  level: string
}

/**
 * 用户分页列表项声明
 */
export interface UserType {
  id: string
  username: string
  nickname: string
  mobile: string
  gender: number
  avatar: string
  email: string
  status: number
  deptName: string
  roleNames: string
  createTime: string
}

/**
 * 用户表单类型声明
 */
export interface UserForm {
  id: number | undefined
  deptId: number
  username: string
  nickname: string
  password: string
  mobile: string
  email: string
  gender: number
  status: number
  remark: string
}

/**
 * 用户导入表单类型声明
 */
export interface UserImportData {
  deptId: number
  roleIds: number[]
}
